﻿@{
    ViewBag.Title = "Home Page";
}
<div class="row">
    <div class="col-xs-12">
        <label style="color:white">输入信息：</label><input id="message" />
        <button id="go">提交</button>
    </div>
    <div id="show" class="col-xs-5" style="margin-left:19%;margin-top:150px;">
        <img id="img" src="/Home/GetQRImage?value=欢迎使用" />
    </div>
</div>
<script>
    $("#go").click(function () {
        var value = $("#message").val();
        if (value == null || value == "") {
            alert("请输入信息");
            $("#message").focus();
            return;
        }
        $("#img").attr("src", "/Home/GetQRImage?value=" + value);
    })
</script>